•  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
r1
r1

(새 문서)
1 * apt-get 업데이트
2> apt-get update -y
3 * sudo 설치
4> apt-get install sudo -y
5 * apt 업데이트
6> sudo apt update
7> sudo apt upgrade -y
8 * curl 설치
9> sudo apt install curl -y
10 * nvm 설치 ([[https://github.com/nvm-sh/nvm?tab=readme-ov-file#installing-and-updating|github 링크]])
11> curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
12
13> export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
14> [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
15 * pm2 설치[* npm은 기본으로 설치되어 있음.]
16> npm install pm2 -g
17-----
18 * mongoDB 설치
19> sudo apt-get install gnupg curl -y
20
21> curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
22 sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \
23 --dearmor
24
25> echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
26>-----
27> ubuntu 24.04 (Noble)
28{{{#!folding [ 다른 버전 보기 ]
29> echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
30>-----
31> Ubuntu 22.04 (Jammy)
32
33> echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
34>-----
35> Ubuntu 20.04 (Focal)
36}}}
37> sudo apt-get update
38> sudo apt-get install -y mongodb-org
39
40> 5[* 5. Asia] - 68[* 68. Seoul]
41 * systemctl 설치
42> sudo apt-get install systemctl -y
43 * mongoDB 실행
44> mongosh
45{{{#!folding [ 만약 실행이 안된다면 ]
46 > docker -> Files -> {{{/etc/mongod.conf}}}로 이동
47 > 아래와 같이 수정 및 모든 주석 삭제 후 저장
48 >-----
49 > 수정 전
50 >{{{storage:
51 dbPath: /var/lib/mongodb
52 journal:
53 enabled: true
54}}}
55 >-----
56 > 수정 후
57 > {{{storage:
58 dbPath: /var/lib/mongodb
59}}}}}}
60 * DB 생성 및 DB에 접속할 user 만들기
61> use test123 //test123 DB 생성 및 접속
62> db.createUser({ user: "admin", pwd: "0000", roles: [ "readWrite" ]}) //admin 계정으로 0000 비밀번호로 readWrite 권한으로 계정 생성
63> db.getUsers(); //생성된 User 확인
64> exit
65 * Meilisearch 설치
66> curl -L https://install.meilisearch.com | sh
67 * git 설치
68> apt install git -y
69 * the tree 엔진 설치
70> git clone https://github.com/wjdgustn/thetree --recursive
71
72-----
73출처
74 * 다올위키 [[https://daol.cc/w/the tree/설치 방법|the tree/설치 방법]] 문서의 [[https://daol.cc/w/the%20tree/%EC%84%A4%EC%B9%98%20%EB%B0%A9%EB%B2%95?uuid=e67d8b0a-91f1-4f67-9713-c2a5f8d55ece|r10]]판에서 가져옴.
75 * 더시드위키 [[https://theseed.io/w/사용자:asdf1024/연습장|사용자:asdf1024/연습장]] 문서의 [[https://theseed.io/w/%EC%82%AC%EC%9A%A9%EC%9E%90:asdf1024/%EC%97%B0%EC%8A%B5%EC%9E%A5?uuid=79a62d21-f6a7-4acd-a8c7-ec138bd558a0|r654]]판에서 가져옴.
76 * 더시드위키 [[https://theseed.io/w/사용자:asdf1025/the tree 설치|사용자:asdf1025/the tree 설치]] 문서의 [[https://theseed.io/w/%EC%82%AC%EC%9A%A9%EC%9E%90:asdf1025/the%20tree%20%EC%84%A4%EC%B9%98?uuid=0ee2ab8d-594a-4879-a33e-847ab908a4e7|r21]]판에서 가져옴.